package structural.composite;

import java.util.ArrayList;
import java.util.List;

public class Composite implements Component {

	private List<Component> componentList = new ArrayList<Component>();
	
	public void add(Component component){
		this.componentList.add(component);
	}
	
	public void remove(Component component){
		this.componentList.remove(component);
	}
	
	public List<Component> getChildren(){
		return this.componentList;
	}
	
	@Override
	public void operation() {
		// TODO Auto-generated method stub

	}

}
